{"ast":null,"code":"import apiClient from \"../http\";\nimport { getChats } from \"../routes\";\nexport default class ChatService {\n  static async getChatsList() {\n    return apiClient.get(getChats());\n  }\n  static async profile() {\n    return apiClient.get(profile());\n  }\n}","map":{"version":3,"names":["apiClient","getChats","ChatService","getChatsList","get","profile"],"sources":["/data/messenger.client/src/services/ChatService.ts"],"sourcesContent":["import apiClient from \"../http\";\nimport {AxiosResponse} from 'axios';\nimport {getChats} from \"../routes\"\nimport {ChatsListResponse} from \"../models/response/ChatsListResponse\";\n\nexport default class ChatService {\n    public static async getChatsList(): Promise<AxiosResponse<ChatsListResponse>> {\n        return apiClient.get<ChatsListResponse>(getChats());\n    }\n\n    public static async profile(): Promise<AxiosResponse<Срф>> {\n        return apiClient.get<UserListItem>(profile());\n    }\n}"],"mappings":"AAAA,OAAOA,SAAS,MAAM,SAAS;AAE/B,SAAQC,QAAQ,QAAO,WAAW;AAGlC,eAAe,MAAMC,WAAW,CAAC;EAC7B,aAAoBC,YAAY,GAA8C;IAC1E,OAAOH,SAAS,CAACI,GAAG,CAAoBH,QAAQ,EAAE,CAAC;EACvD;EAEA,aAAoBI,OAAO,GAAgC;IACvD,OAAOL,SAAS,CAACI,GAAG,CAAeC,OAAO,EAAE,CAAC;EACjD;AACJ"},"metadata":{},"sourceType":"module"}